<template>
  <div class="product">
    <h3>标题：{{ title }}</h3>
    <p>价格: {{ price }}</p>
    <p>描述: {{ desc }}</p>
  </div>
</template>

<script>
export default {
  // 子要
  props: [ 'title', 'price', 'desc' ]
}
</script>

<style>
.product {
  width: 400px;
  border: 3px solid #000;
  border-radius: 5px;
  margin: 10px;
  padding: 0 20px;
}
</style>
